from django.db import models
# from django.contrib.gis.db import models as gis_models

from dvadmin.utils.models import CoreModel, table_prefix

class Divider(CoreModel):
    name = models.IntegerField(verbose_name='页头名称', null=True, blank=True, help_text='页头名称')
    code = models.TextField(verbose_name='页头编号', null=True, blank=True, help_text='页头编号')

    # 设置外键
    dept = models.ForeignKey('system.Dept', on_delete=models.SET_NULL, null=True, blank=True,related_name='+')

    class Meta:
        db_table = table_prefix + "system_divider"
        verbose_name = "页头部门分配表"
        verbose_name_plural = verbose_name
